package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2023-08-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_message_notice")
public class MessageNoticeDo extends Model<MessageNoticeDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公司id
     */
    @TableField("company_id")
    private Long companyId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 消息标题
     */
    @TableField("message_title")
    private String messageTitle;

    /**
     * 消息内容
     */
    @TableField("message_content")
    private String messageContent;

    /**
     * 消息类型
     */
    @TableField("message_type")
    private String messageType;

    @TableField("module")
    private String module;

    /**
     * 状态(0:未处理 1:已处理)
     */
    @TableField("status")
    private Integer status;

    /**
     * 私人消息是否已读 1:是 0:否
     */
    @TableField("whether_read")
    private Integer whetherRead;

    @TableField("third_id")
    private Long thirdId;

    @TableField("create_by")
    private Long createBy;

    /**
     * 发布时间
     */
    @TableField("create_time")
    private Date createTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("update_time")
    private Date updateTime;

    /**
     * 删除标记(1:已删除 0:未删除)
     */
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_time")
    private Date deleteTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
